<div class="navbar grass">
    <div class="navbar-inner">
        <a class="brand" href="#"></a>
        <ul class="nav">
            <li class="dropdown <?php echo ($__CURRENT_PAGE__ == 'employe') ? 'active' : '' ?>">
                <a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="../employe/list.php">Employés
                    <b class="caret"></b>
                </a>
                 <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                 <li><a href="../employe/list.php">Liste des employés</a></li>
                 <li><a href="../employe/order.php">Ordre de garde</a></li>
                 <li><a href="../employe/form.php">Ajouter des employés</a></li>
                </ul>
            </li>
            <li <?php echo ($__CURRENT_PAGE__ == 'departement') ? 'class="active"' : '' ?>><a href="../departement/list.php">Départements</a></li>
            <li <?php echo ($__CURRENT_PAGE__ == 'service') ? 'class="active"' : '' ?>><a href="../service/list.php">Services</a></li>
            <li class="<?php echo ($__CURRENT_PAGE__ == 'garde_unite') ? 'active' : '' ?>">
                <a href="../guardUnit/list.php">Unités de gardes</a>
            </li>
            <li class="dropdown <?php echo ($__CURRENT_PAGE__ == 'affect_garde') ? 'active' : '' ?>">
                <a class="dropdown-toggle" id="gLabel" role="button" data-toggle="dropdown" href="#">Gestion des gardes<b class="caret"></b></a>
                 <ul class="dropdown-menu" role="menu" aria-labelledby="gLabel">
                 <li><a href="../guard/list.php">Liste des gardes</a></li>
                 <li><a href="../guard/genGuard.php">Affecter automatiquement les gardes</a></li>
                </ul>
            </li>
            <li <?php echo ($__CURRENT_PAGE__ == 'infos') ? 'class="active"' : '' ?>><a href="../information/list.php">Informations</a></li>
            <?php if(isConnected()): ?>
                <li class="pull-right dropdown">
                    <a class="dropdown-toggle" id="log" role="button" data-toggle="dropdown" href="#">
                      <?php echo getSession()->first_name.' '.getSession()->last_name ?>
                      <b class="caret"></b></a>
                     <ul class="dropdown-menu" role="menu" aria-labelledby="log">
                     <li><a href="../employe/logout.php">Se déconnecter</a></li>
                     <li><a href="../employe/form.php?id=<?php echo getSession()->id ?>">Profile</a></li>
                    </ul>
                </li>
            <?php endif ?>
        </ul>
    </div>
</div>
